package com.example.houduan.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 
 * @TableName tag
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tag")
public class Tag implements Serializable {
    @NotBlank(message = "id不为空")
    private Long id;
    @NotBlank(message = "tag不为空")
    private String tag;
    private static final long serialVersionUID = 1L;

    public Tag(Long id, String i) {
        this.id=id;
        this.tag=i;
    }
}